# Stores users' data
#	Copyright (C) 2008 Sambit Bikas Pal, IISERK
#	Author: Sambit Bikas Pal , Email: sam@botcyb.org , sambit@iiserkol.ac.in
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
__author__ = 'Sambit Bikas Pal'

from google.appengine.ext import db

class User(db.Model):						# Class to store details of individuals in the DB
	username = db.StringProperty()				# Currently saved details alongwith datatypes:
	userhtml = db.TextProperty()				# String username,fullname
	usercss = db.TextProperty()				# Text page-html, css
	userfullname = db.StringProperty()			# String major, year, batch
	usermajor = db.StringProperty()				# Email email
	userbatch = db.StringProperty()				# Link orkut, web, blog
	useryear = db.StringProperty()				# Text about
	userabout = db.TextProperty()				# PhNo. PhNo.
	useremail = db.EmailProperty()				# Blob Image
	userblog = db.LinkProperty()
	userweb = db.LinkProperty()
	userorkut = db.LinkProperty()
	userphone = db.PhoneNumberProperty()
	useravatar = db.BlobProperty()

